import axios from "@/views/api/index"

function indexaction(data){
    return axios({
        url:"/search/indexaction",
        method:"GET",
        data
    })
}
function helperaction(data){
    return axios({
        url:"/search/helperaction",
        method:"GET",
        data
    })
}

function addhistoryaction(data){
    return axios({
        url:"/search/addhistoryaction",
        method:"POST",
        data
    })
}
function clearhistoryAction(data){
    return axios({
        url:"/search/clearhistoryAction",
        method:"POST",
        data
    })
}

export { // import {index} from "" export可以写多次
    indexaction,
    helperaction,
    addhistoryaction,
    clearhistoryAction}

// export default index // import index1 from ""  export default 只能写一次